package cn.itcast.utils;

import com.mchange.v2.c3p0.ComboPooledDataSource;
import javax.sql.DataSource;
import org.apache.commons.dbutils.QueryRunner;

public class JdbcUtil {
	private static DataSource dataSource = new ComboPooledDataSource();

	public static QueryRunner getQueryRunner() {
		try {
			return new QueryRunner(dataSource);
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
		
		
		
		
	}
}